package com.example.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.api.common.core.CommonResult;
import com.example.api.dto.LoginRequest;
import com.example.api.entity.Users;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface UsersService extends IService<Users> {
    Users findByUsername(String username);
    CommonResult login(LoginRequest request);
}
